//
//  UpdateStore.swift
//  SwiftUI101
//
//  Created by 姬向阳 on 2020/3/30.
//  Copyright © 2020 SUNNYJ. All rights reserved.
//

import SwiftUI
import Combine

class UpdateStore : ObservableObject {
    var didChange = PassthroughSubject<Void, Never>()
    @Published var updates : [Update] {
        didSet {
            didChange.send()
        }
    }
    init(updates: [Update] = []) {
        self.updates = updates
    }
}
